<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <title>弹力细胞 - BounceCell</title>
    <script src="js/cfg.js"></script>
    <script src="js/Frontier.js"></script>
    <script src="js/main.js"></script>
    <style>
        body {
            padding: 0;
            margin: 0;
            background: #ddd;
            overflow: hidden;
            /* 文本不可选中 */
            user-select: none;
            -webkit-user-seletct: none;
            -moz-user-seletct: none;
            -ms-user-seletct: none;
        }

        #op {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, .8);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #of {
            position: absolute;
            bottom: 0;
        }

        #frame {
            display: flex;
            flex-direction: column;
            height: 280px;
            overflow: hidden;
            border-radius: 16px;
            background-color: white;
        }

        #fh {
            display: flex;
            justify-content: space-between;
            flex-shrink: 0;
            border-bottom: 2px solid rgba(0, 0, 0, .8);
            padding: 0 8px;
            padding-top: 16px;
            padding-bottom: 8px;
            font-size: 1.25em;
        }

        #fs {
            flex-grow: 2;
            border-bottom: 2px solid rgba(0, 0, 0, .8);
            padding: 8px;
            overflow-x: hidden;
            overflow-y: scroll;
        }

        #ff {
            display: flex;
            flex-shrink: 0;
        }

        #ff>div {
            flex-grow: 2;
            padding: 8px 0;
            font-size: 1.25em;
            text-align: center;
            color: white;
            background-color: gray;
        }

        #m {
            position: fixed;
            right: 4px;
            bottom: 0;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        #m>div {
            padding: 4px;
            margin-right: 4px;
            border: 1px solid #000;
            border-radius: 8px;
            background-color: white;
        }
    </style>
</head>

<body>
    <div id="m" style="display: none;">
        <div id="mp">暂停</div>
        <div id="mr">重开</div>
    </div>

    <div id="op">
        <div id="frame">
            <div id="fh">
                <span>游戏设定</span>
                <span style="color: red;">分数：<span id="score">0</span></span>
            </div>

            <div id="fs">
                <table id="fo"></table>
            </div>

            <div id="ff">
                <div id="start">休闲模式</div>
                <div id="start_infinity">无尽模式</div>
            </div>
        </div>

        <div id="of">
            <a href="https://gitee.com/ExFTLPT/bounce-cell" style="color: white;">
                开源地址
            </a>
        </div>
    </div>

    <canvas id="map"></canvas>
</body>

</html>